package com.personal.modules.sys.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.personal.modules.sys.dao.TSysUserRoleDao;
import com.personal.modules.sys.entity.TSysUserRoleEntity;
import com.personal.modules.sys.service.TSysUserRoleService;



@Service("tSysUserRoleService")
public class TSysUserRoleServiceImpl implements TSysUserRoleService {
	@Autowired
	private TSysUserRoleDao tSysUserRoleDao;
	
	@Override
	public TSysUserRoleEntity queryObject(Long id){
		return tSysUserRoleDao.queryObject(id);
	}
	
	@Override
	public List<TSysUserRoleEntity> queryList(Map<String, Object> map){
		return tSysUserRoleDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return tSysUserRoleDao.queryTotal(map);
	}
	
	@Override
	public void save(TSysUserRoleEntity tSysUserRole){
		tSysUserRoleDao.save(tSysUserRole);
	}
	
	@Override
	public void update(TSysUserRoleEntity tSysUserRole){
		tSysUserRoleDao.update(tSysUserRole);
	}
	
	@Override
	public void delete(Long id){
		tSysUserRoleDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		tSysUserRoleDao.deleteBatch(ids);
	}
	
}
